<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			request.setCharacterEncoding("UTF-8");
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'ShowAllUser.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
function check(){

 var groupname=document.getElementById('groupname');


 if(!groupname.value){
 alert("请输入工作组名!");
 groupname.focus();
 return false;
 }
 if(groupname.value.length>15){
  alert(groupname.value.length+"工作组名长度超出15!");
 groupname.focus();
 return false;
 }
 }
</script>

  </head>
  
  <body>
 <form action="updategroup" method="post" onsubmit="return check()">
  <div align=left  >
  <center>
  工作组名：<input type="text" id="groupname" name="workgroupBean.workgroupName" value=<s:property value="workgroupBean.workgroupName" /> />
    <input type="submit" value="确认修改" />
    </center>
    </div>
    <div style="float:left;margin-left:300px;margin-top:50px">
    <table class="table table-hover" >

  	<tr border=1>
  	<th>选择</th>
  		<th>用户名</th>
  		<th>姓名</th>
  	</tr>
  
	<s:iterator value="userlist1" id="user1">
								<tr>
									<td><input type="checkbox" checked="checked" name="selectuser"  value="<s:property value="#user1.username"  />"></td>													
									<td><s:property value="#user1.username" /></td>	
									<td><s:property value="#user1.name" /></td>	
								
								</tr>
	</s:iterator>

  

  	</table>
  
  	</div>
  	
  	
  	
  	<div align=right style="margin-top:50px">
 

    <table class="table table-hover">

  	<tr border=1>
  	<th>选择</th>
  		<th>用户名</th>
  		<th>姓名</th>
  	
  		
  	</tr>
  
	<s:iterator value="userlist2" id="user2">
								<tr>
									<td><input type="checkbox" name="selectuser" value="<s:property value="#user2.username" />"></td>													
									<td><s:property value="#user2.username" /></td>	
									<td><s:property value="#user2.name" /></td>	
								
								</tr>
	</s:iterator>
	 
  

  	</table>
  
  	</div>
  	
  		</form>
  </body>
</html>